// TestLeds1.c
#include <avr/io.h>
#include <util/delay.h>
int main (void)
{	
	DDRB = 0xFF;		//set PORTB for output
	PORTB = 0;		//shut port off
	
	for (int i = 1; i <= 10; i = i +1) 		//Pause to let program start
	{
		_delay_loop_2(30000);
	}
	
		//**Start LEDS **
	
		
	//
	{
	//Start with Middle LED	
	PORTB = 2;
	for (int i = 1; i <= 10; i = i +1)
	{
		_delay_loop_2(30000);
	}
	
		
	PORTB = 1;
	for (int i = 1; i <= 7; i = i +1)
	{
		_delay_loop_2(27000);
	}
    PORTB = 4;								//Port 3 only functions as $
	for (int i = 1; i <= 7; i = i +1)
	{
		_delay_loop_2(27000);
	}
	
    PORTB = 5;								
	for (int i = 1; i <= 7; i = i +1)
	{
		_delay_loop_2(27000);
	}
	
    PORTB = 6;								
	for (int i = 1; i <= 7; i = i +1)
	{
		_delay_loop_2(27000);
	}
	
    PORTB = 7;								
	for (int i = 1; i <= 7; i = i +1)
	{
		_delay_loop_2(27000);
	}
	
	}
	PORTB = 0;
}
